package com.ruoyi.plus.pub.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 资源对象 pub_resources
 *
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("pub_resources")
public class PubResources extends BaseEntity implements Serializable{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(value = "id")
    private Long id;

    /** 资源名 */
    @Excel(name = "资源名")
    @TableField(value = "name")
    private String name;

    /** 资源分类id */
    @Excel(name = "资源分类id")
    @TableField(value = "resources_class_id")
    private Long resourcesClassId;

    /** 文件夹路径 */
    @Excel(name = "文件夹路径")
    @TableField(value = "dir_path")
    private String dirPath;

    /** 文件路径 */
    @Excel(name = "文件路径")
    @TableField(value = "file_path")
    private String filePath;

    /** 文件URL */
    @Excel(name = "文件URL")
    @TableField(value = "file_url")
    private String fileUrl;

    /** 文件类型 */
    @Excel(name = "文件类型")
    @TableField(value = "file_type")
    private String fileType;

    /** 文件大小 */
    @Excel(name = "文件大小")
    @TableField(value = "file_size")
    private String fileSize;

    /** 存储类型(0本地,1Minio) */
    @Excel(name = "存储类型(0本地,1Minio)")
    @TableField(value = "storage_type")
    private String storageType;


}
